<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        function Fn(){
            // {}
            // this -> {}
            // 实例化对象  => this
            // this.__proto__ =  Fn.prototype   实例化对象   __proto__  就是原型对象
        }

        console.log(Fn)
        
        var obj = new Fn();
        console.log(obj)
        console.log(obj.__proto__ === Fn.prototype)
        console.log(obj.__proto__.constructor  === Fn)

        // var arr  = []
        var arr = new Array()
        console.log(arr)
        console.log(arr.__proto__ === Array.prototype)
        console.log(arr.__proto__.constructor === Array)

        // constructor  构造器 

        // prototype 当前构造函数的原型对象  共有的属性和方法  

        // static 静态属性   没有this 不能被实例化 
    </script>
</body>
</html>